<?php
/*
 * @project CreativeFramework
 * @version <#RELEASE_VERSION#>
 * @license GNU Lesser General Public License
 * @author Jimmie Lin
 */

// CF_VERSION
// CF_REAL_VERSION
// CF_BUILD_VERSION

function check_latest()
{
	global $cURL;
	#$res = $cURL->fetch("http://creativebb.net/cf_update.txt");
	$res = "0";
	$res = intval($res);
	return $res;
}

function check_updated()
{
	$res = check_latest();
	if(CF_REAL_VERSION < $res)
		return false;
	elseif(CF_REAL_VERSION > $res)
		return 2;
	else
		return true;
}
